# 2024/1/31 11:29 HFL
import requests

url = 'http://192.168.12.7:8080/zentao/project-create.html'
data = {
    'name': 'tets2023',
    'code': 'tets2023',
    'begin': '2024-01-31',
    'end': '2024-02-06',
}
headers = {'Cookie': 'lang=zh-cn; device=desktop; theme=default; keepLogin=on; za=admin; preBranch=0; preProductID=1; lastProduct=0; goback=%7B%22product%22%3A%22http%3A%5C%2F%5C%2F192.168.12.7%3A5674%5C%2Fzentao%5C%2Fprogram-browse.html%22%2C%22project%22%3A%22http%3A%5C%2F%5C%2F192.168.12.7%3A5674%5C%2Fzentao%5C%2Fproject-bug-11.html%22%2C%22admin%22%3A%22http%3A%5C%2F%5C%2F192.168.12.7%3A5674%5C%2Fzentao%5C%2Fbackup%5C%2F%22%2C%22execution%22%3A%22http%3A%5C%2F%5C%2F192.168.12.7%3A5674%5C%2Fzentao%5C%2Fproject-browse.html%22%7D; tab=my; zentaosid=d3eb9b0ed0d804652b0d0ea707d81d61; zp=44ade467a04280fa1e2582f39cd5dea6ff5cccb5; from=doc; lastProject=1; preProjectID=1; moduleBrowseParam=0; productBrowseParam=0; projectTaskOrder=status%2Cid_desc; windowWidth=1360; windowHeight=848; remember-me=YWRtaW46MTcwNzA0MDM2MjU4ODowNzE0MTZmNmRmNzQxNmIzNmIxZDhhN2M0ZTFkZGE4YTdjZjU4ZGNmOTIyMjcwN2Q2MTQ0MjJjMjMwYzAxOGZj'}
res = requests.post(url=url, data=data, headers=headers)
print(res.text)